package  
{
	import org.flixel.*;
	
	/**
	 * ...
	 * @author ...
	 */
	
	public class Clock extends Powerup
	{
		private var _increaseTimeValue:Number = 10;
		
		public function Clock(X:Number, Y:Number) 
		{
			super(X, Y);
			
			_floatMax += 1;
			_floatMin -= 1;
			
			loadGraphic(ImageFiles.clock);
		}
		
		public override function collect():void
		{
			var state:PlayState = FlxG.state as PlayState;
			
			state.timerDisplay.addToTimer(_increaseTimeValue);
			
			FlxG.play(SoundFiles.clockSound);
		}
		
		override public function update():void 
		{
			super.update();
		}
	}

}